package com.erp.entity.goods;

import java.io.Serializable;
import java.util.List;

/**
 * 多单位组编辑请求类
 */
public class UnitGroupEditRequest implements Serializable {
    //主单位组修改后的信息。
    private MultipleUnit mainUnit;
    //基本单位修改后的信息
    private MultipleUnit baseUnit;
    //下面是副单位进行操作后的信息记录(内部类)。分别对应增加、删除和保留（会进行编辑）的副单位信息。
    private SubUnit subUnits;

    public static class SubUnit {
        private List<MultipleUnit> added;

        private List<Integer> deleted;

        private List<MultipleUnit> retained;

        public List<MultipleUnit> getAdded() {
            return added;
        }

        public void setAdded(List<MultipleUnit> added) {
            this.added = added;
        }

        public List<Integer> getDeleted() {
            return deleted;
        }

        public void setDeleted(List<Integer> deleted) {
            this.deleted = deleted;
        }

        public List<MultipleUnit> getRetained() {
            return retained;
        }

        public void setRetained(List<MultipleUnit> retained) {
            this.retained = retained;
        }
    }

    public MultipleUnit getMainUnit() {
        return mainUnit;
    }

    public void setMainUnit(MultipleUnit mainUnit) {
        this.mainUnit = mainUnit;
    }

    public MultipleUnit getBaseUnit() {
        return baseUnit;
    }

    public void setBaseUnit(MultipleUnit baseUnit) {
        this.baseUnit = baseUnit;
    }

    public SubUnit getSubUnits() {
        return subUnits;
    }

    public void setSubUnits(SubUnit subUnits) {
        this.subUnits = subUnits;
    }
}
